package com.lepai.web.controller;

import com.lepai.bean.RequestTest;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.PostConstruct;

/**
 * @author weihaolong
 * @date 2019-04-29 11:12
 * @description
 */
@RequestMapping("test")
@Controller
public class TestController {

    @PostConstruct
    public void init(){
        System.out.println("测试TestController进行实例化!!!");
    }

    @RequestMapping("aaa")
    public void test(@RequestBody RequestTest requestTest){
        System.out.println("通过" + requestTest);
    }
}
